floyd's triangle algorithm in python